package com.dingup.paike.model.pk;

import com.dingup.paike.enums.PkLessonUserTypeEnum;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

public class PkLessonUser implements Cloneable{
    @Id
    private Integer id;
    @Column(name = "user_id")
    private String userId;
    @Column(name = "user_name")
    private String userName;
    @Column(name = "pk_lesson_id")
    private Integer pkLessonId;
    @Column(name = "type")
    private PkLessonUserTypeEnum type;
    @Column(name = "class_hour")
    private Float classHour;
    @Column(name = "create_time")
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Integer getPkLessonId() {
        return pkLessonId;
    }

    public void setPkLessonId(Integer pkLessonId) {
        this.pkLessonId = pkLessonId;
    }

    public PkLessonUserTypeEnum getType() {
        return type;
    }

    public void setType(PkLessonUserTypeEnum type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Float getClassHour() {
        return classHour;
    }

    public void setClassHour(Float classHour) {
        this.classHour = classHour;
    }

    /**
     * 实体克隆
     * @return
     * @throws CloneNotSupportedException
     */
    public PkLessonUser clone() throws CloneNotSupportedException{
        PkLessonUser pk = (PkLessonUser) super.clone();
        return pk;
    }
}